checkState

open fun checkState(expression: Boolean, @Nullable message: String)(source)

Ensures the truth of an expression involving the state of the calling instance, but not involving any parameters to the calling method.

Parameters

expression

a boolean expression

message

exception message

Throws

if expression is false


open fun checkState(expression: Boolean)(source)

Ensures the truth of an expression involving the state of the calling instance, but not involving any parameters to the calling method.

Parameters

expression

a boolean expression

Throws

if expression is false